package com.ygq.controller;


import VO.PPTSVO;
import com.ygq.PPTService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import result.Result;

import java.util.List;

@RestController
@RequestMapping("/student/ppt")
public class PPTStudentController {

    @Autowired
    private PPTService pptService;

    /**
     * 根据班级id获取到课件信息
     * @param id
     * @return
     */
    @GetMapping("/getPPTs")
    public Result<List<PPTSVO>> getPPTs(Integer id){
        return Result.success(pptService.getStudentPPT(id));
    }
}
